#ifndef __THREAD_POOL__
#define __THREAD_POOL__

#include<func.h>
#include"taskQueue.h"

typedef struct threadPool_s
{
    pthread_t *tidArr;
    int workerNum;
    queue_t taskQueue;
    pthread_mutex_t mutex;
    pthread_cond_t cond;

}threadPool_t;

int makeworker(threadPool_t *pthreadPool);

void *threadFunc(void *arg);
int tcpInit(char *ip,char *port,int *pSockFd);
int epollAdd(int epfd,int fd);
int epollDel(int epfd,int fd);
int transFile(int netfd);
int readConf(char *ip,char *port,int *threadNum);
#endif
